﻿<UserControl x:Class="Frontend.ThemesControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:src="clr-namespace:Frontend"
             mc:Ignorable="d"              
             x:Name="RootControl"
             d:DesignHeight="400" d:DesignWidth="600">
    <DockPanel>
        <Border DockPanel.Dock="Bottom" BorderBrush="Black" BorderThickness="1">
            <DockPanel  LastChildFill="False">
                <DockPanel.Resources>
                    <Style TargetType="TextBlock">
                        <Setter Property="TextBlock.Margin" Value="2 5 20 5" />
                        <Setter Property="TextBlock.VerticalAlignment" Value="Center" />
                        <Setter Property="TextBlock.TextTrimming" Value="CharacterEllipsis" />
                    </Style>
                </DockPanel.Resources>
                <TextBlock Name="HighlightedTheme"  DockPanel.Dock="Left"  />
                <TextBlock Name="HighlightedWeek"   DockPanel.Dock="Right" />
                <TextBlock Name="HighlightedLevel"  DockPanel.Dock="Right" />
                <TextBlock Name="HighlightedClassType" DockPanel.Dock="Right" />
            </DockPanel>
        </Border>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="133*"/>
                <RowDefinition Height="202*" />
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center">
                <StackPanel.Resources>
                    <Style x:Key="FontSizeStyle" >
                        <Setter Property="TextBlock.FontSize" Value="16" />
                    </Style>
                    <Style x:Key="LabelStyle" BasedOn="{StaticResource FontSizeStyle}">
                        <Setter Property="TextBlock.VerticalAlignment" Value="Center"/>
                        <Setter Property="TextBlock.Margin" Value="2"/>
                        <Setter Property="TextBlock.Padding" Value="1"/>
                    </Style>
                    <Style x:Key="ValueStyle" BasedOn="{StaticResource FontSizeStyle}">
                        <Setter Property="TextBlock.VerticalAlignment" Value="Center"/>
                        <Setter Property="TextBlock.Margin" Value="5 2"/>
                        <Setter Property="TextBlock.FontWeight" Value="Bold"/>
                    </Style>
                    <Style x:Key="LinkStyle">
                        <Setter Property="TextBlock.VerticalAlignment" Value="Center"/>                        
                        <Setter Property="TextBlock.Margin" Value="2 5"/>
                    </Style>
                    <Style x:Key="StackPanelStyle">
                        <Setter Property="StackPanel.Margin" Value="20 5" />
                        <Setter Property="StackPanel.Orientation" Value="Horizontal" />
                    </Style>
                </StackPanel.Resources>
                <StackPanel Style="{StaticResource StackPanelStyle}">
                    <TextBlock Style="{StaticResource LabelStyle}" >Current</TextBlock>
                    <TextBlock Style="{StaticResource LabelStyle}" >Level</TextBlock>
                    <TextBlock Style="{StaticResource ValueStyle}" x:Name="CurrentLevelValue">
                        lvl
                    </TextBlock>
                </StackPanel >
                <StackPanel Style="{StaticResource StackPanelStyle}" >
                    <TextBlock Style="{StaticResource LabelStyle}">Current</TextBlock>
                    <TextBlock Style="{StaticResource LabelStyle}" x:Name="CurrentWeekLabel">Week</TextBlock>
                    <TextBlock Style="{StaticResource ValueStyle}" x:Name="CurrentWeekValue">wk</TextBlock>
                </StackPanel>
            </StackPanel>

            <TabControl Grid.Row="2" Grid.RowSpan="2">
                <TabItem Header="Workshop Digest" >                    
                    <src:WorkshopThemeGrid x:Name="DigestThemeGrid"  />
                </TabItem>
                <TabItem Header="Grammar">
                    <src:WorkshopThemeGrid x:Name="GrammarThemeGrid"  />
                </TabItem>
                <TabItem Header="Conversation">
                    <src:WorkshopThemeGrid x:Name="ConversationThemeGrid"  />
                </TabItem>
                <TabItem Header="Writing">
                    <src:WorkshopThemeGrid x:Name="WritingThemeGrid"  />
                </TabItem>                
                <TabItem Header="Reading">
                    <src:WorkshopThemeGrid x:Name="ReadingThemeGrid"  />
                </TabItem>
                <TabItem Header="Group">
                    <src:GroupThemeGrid x:Name="GroupThemeGrid"  />
                </TabItem>                
                <TabItem Header="Club">
                    <src:ClubThemeGrid x:Name="ClubThemeGrid"  />
                </TabItem>
                <TabItem Header="Business">
                    <src:BusinessThemeGrid x:Name="BusinessThemeGrid"  />
                </TabItem>
            </TabControl>
        </Grid>
    </DockPanel>
</UserControl>
